package com.lovo.pis.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lovo.pis.dto.LogBean;
import com.lovo.pis.dto.PageBean;
import com.lovo.pis.service.ILogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class LogController {

    @Autowired
    ILogService logService;

    //查询所有日志信息
    @RequestMapping("/queryAll")
    public IPage<LogBean> queryAll(@RequestBody PageBean<LogBean> pageInfo){
        return logService.queryAll(pageInfo);
    }



}
